﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZhonTai.Industry.Contracts.Model.Entity;
using ZhonTai.Industry.Core.Core.DeviceMutual;

namespace ZhonTai.Industry.Core.Service.MessageHandler.RecipeMonitor
{
    public class RecipeMonitorHandler : IMessageHandler
    {
        private readonly FormulaHandle _formmulaHande;

        public RecipeMonitorHandler(FormulaHandle formulaHandle)
        {
            _formmulaHande = formulaHandle;
        }

        public async Task HandleAsync(PushShip message)
        {
            await _formmulaHande.ExecuteAsync(message);
        }
    }
}